<?php
defined('YII_DEBUG') or define('YII_DEBUG',true);

require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'framework'.DIRECTORY_SEPARATOR.'yii.php');

// we'll use a separate config file
$configFile=dirname(__FILE__).'/config/console/main.php';

// creating and running console application
Yii::createConsoleApplication($configFile)->run();